package cn.geminis.devops.jenkins;

def build() {
    def gradleHome = tool "defaultGradle";
    sh gradleHome + '/bin/gradle clean build ' + (env.BUILD_PARAMS == null ? '' : env.BUILD_PARAMS)
}

def install() {
    def gradleHome = tool "defaultGradle";
    sh gradleHome + '/bin/gradle publishToMavenLocal'
}

def publish() {
    def gradleHome = tool "defaultGradle";
    sh gradleHome + '/bin/gradle publishLibraryPublicationToGeminisRepository'
}

def getBuildPath() {
    return 'build/libs';
}